import matplotlib.pyplot as plt
import numpy as np
import os

print(0.1*(0.9**40))
loss_path = '/home/a409/users/lihaowei/my_model/patch-DSM/6_21_10_27/train/step2_loss.txt'
with open(loss_path, 'r') as file:
    loss = []
    for line in file:
        line = line[:]
        print(line)
        loss.append(float(line))

    plt.figure(figsize=(20, 8), dpi=80)
    plt.plot(loss[:])
    plt.show()

# path = '/home/a409/users/lihaowei/my_model/patch-DSM/5_31_20_47/result/test_acc.txt'
# with open(path, 'r') as file:
#     loss = []
#     for line in file:
#         line = line[1:].split(',')
#         loss.append(float(line[0]))
#
#     plt.figure(figsize=(20, 8), dpi=80)
#     plt.plot(loss[:])
#     plt.show()